package xy.boot.condition;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import xy.boot.condition.entity.User;

@SpringBootApplication
public class BootConditionApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context =  SpringApplication.run(BootConditionApplication.class, args);
        User user = (User) context.getBean("userBean");
        System.out.println(user);

    }

}
